package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.core.env.Environment;

@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) {
		System.setProperty("applicationName", "springcloud-study");
		SpringApplication.run(DemoApplication.class, args);
		System.out.println(System.getProperties());
//		SpringApplication app = new SpringApplication(DemoApplication.class);
//		Environment env = app.run(args).getEnvironment();
//		System.out.println("Nacos server address: " + env.getProperty("spring.cloud.nacos.config.server-addr"));
	}

}
